#include "../apue.h"
#include <sys/wait.h>
#include <errno.h>

int main(void)
{
    pid_t pid;
    if ((pid = fork()) < 0)
        err_sys("fork error");
    else if (pid == 0)
//        if (execl("/home/guopong/bin/testinterp",
//                    "testinterp", "myarg1", "MY ARG2", "MY ARG3", NULL) < 0)
        if (execlp("testinterp", "testinterp", "myarg1(New)", "MY ARG2", "MY ARG3", NULL) < 0)
            err_sys("execl error");

    if (waitpid(pid, NULL, 0) < 0)
        err_sys("waitpid error");

    exit(0);
}

